Skip to content

[FIX/#216] 오프라인 아카이브 기본 화면 유지 - #221

Merged
jm991014 merged 2 commits into
developfrom
fix/#216-archive-offline
Nov 6, 2026
Merged

jm991014 merged 2 commits into
developfrom
fix/#216-archive-offline

Conversation

@jm991014

@jm991014 jm991014 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Related issue 🛠

Work Description ✏️

  • 최초 오프라인 진입 시 기본 프로필 이미지·아이콘과 현재 월의 빈 달력·회색 마운틴맵을 표시하고, 닉네임·일수·누적 횟수는 공란으로 둡니다.
  • 인터넷 연결 후 탭을 다시 진입하면 데이터를 조회합니다. 조회 후 연결이 끊기면 기존 데이터를 유지하면서 네트워크 토스트를 표시합니다.
  • 화면이 보이는 동안 연결 변화를 감지하며, 네트워크 검증 중에는 최대 2초 기다린 뒤 연결 여부를 판단합니다.
  • 기록 변경 시 캐시와 기존 기록 목록을 비우고 재조회하며, 네트워크 오류가 나도 표시 중인 프로필은 유지합니다. 로그아웃 시에도 조회 캐시를 삭제합니다.
  • 요약 갱신과 기록 조회의 로딩 표시가 중복되지 않도록 정리합니다.

Screenshot 📸

테스트 데이터를 사용하고, 에뮬레이터의 실제 네트워크를 연결·해제하면서 촬영했습니다.

최초 오프라인 진입 연결 후 탭 재진입 조회 후 연결 해제
최초 오프라인 정상 조회 데이터 유지와 토스트

Uncompleted Tasks 😅

없음

To Reviewers 📢

@jm991014 jm991014 added this to the AND 2차 QA milestone Nov 3, 2026
@jm991014 jm991014 self-assigned this Nov 3, 2026
@jm991014
jm991014 force-pushed the fix/#216-archive-offline branch 2 times, most recently from 975bd8a to 3a9ff9c Compare November 5, 2026 12:24
@jm991014
jm991014 marked this pull request as ready for review November 5, 2026 12:28
@jm991014
jm991014 requested a review from a team as a code owner November 5, 2026 12:28
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@oilbeaneda oilbeaneda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고많으셨습니다리리리리

UiState.Empty, is UiState.Success -> RouteeBgEllipse(modifier = modifier.fillMaxSize()) {
val data = (content as? UiState.Success)?.data ?: archiveContent(null, uiState.selectedMonth, emptyList())
PullToRefreshBox(
isRefreshing = uiState.isRefreshing,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2: Empty와 Success를 PullToRefreshBox 안으로 합치면서, 월을 옮기면 isRefreshing = true가 되어 당겨서 새로고침 스피너와 기존 로딩 표시가 같이 나오는데 맞을까요? 하나만 보이게 하면 좋을 것 같아요!


fun onRecordChanged() {
member = null
memberRepository.clearCache()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2: onRecordChanged가 다시 불러오기 전에 member와 두 저장소 캐시를 먼저 지워요. 이때 네트워크가 없으면 닉네임/일수/누적 횟수가 모두 비어지게되는데 다시 불러오기에 성공한 뒤에 캐시를 지우는 건 어떨까요?

}
}
manager.registerDefaultNetworkCallback(callback)
trySend(currentNetworkState() == NetworkState.VALIDATED)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p2 : 첫 값을 currentNetworkState() == VALIDATED로 보내서, 네트워크 검증 중에는 false가 나가는거 맞을까요 ? 네트워크가 멀쩡한데도 잠깐 오프라인으로 처리될 수 있지는 않을까료..?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

세 리뷰 전부 반영했습니다~ 감사합니닷

@jm991014
jm991014 force-pushed the fix/#216-archive-offline branch from 3a9ff9c to 35a4b24 Compare November 6, 2026 14:43
@jm991014
jm991014 merged commit 3d0c8ef into develop Nov 6, 2026
2 checks passed
@jm991014
jm991014 deleted the fix/#216-archive-offline branch November 6, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] 오프라인 아카이브 진입·탭 재진입 시 기본 화면 유지

2 participants